home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4835 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: cs.tu-berlin.de!news
  2. From: Olaf Lenzmann <olafbaje@sp.zrz.tu-berlin.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: [RE] BC4.52 & static linkage
  5. Date: Thu, 01 Feb 1996 10:37:18 +0100
  6. Organization: Technical University of Berlin, Germany
  7. Message-ID: <311089CE.611BE976@sp.zrz.tu-berlin.de>
  8. NNTP-Posting-Host: basta.cs.tu-berlin.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b6a (X11; I; Linux 1.2.12 i586)
  13.  
  14. Hi there !
  15.  
  16. I have written a bunch of classes that I want to incorporate
  17. into a DLL. One of the classes is derived from fstream :
  18.  
  19. class _export MyStream : public fstream
  20. {...};
  21.  
  22. When I compile the DLL with dynamic linkage (of the standard
  23. libraries), everything works fine. But if I try to specify
  24. static linkage, the linker gives me an undefined reference
  25. each time fstream or one of its base classes if referenced.
  26.  
  27. W*H*Y ? (Static linking of all the modules to an EXE instead
  28. of a DLL works).
  29.  
  30.         Thanx,
  31.                 olaf
  32.  
  33. * Please mail your reply to me, since I don't have continous *
  34. * access to this newgroup.                                   *
  35.